package com.spbdx.system.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseMongoEntity implements Serializable {

    @Id
    private String id;

    /**
     * 过期时间
     */
    @Indexed(expireAfterSeconds = 600)
    private Date et;

    /**
     * 创建时间
     */
    private Date ct;

    /**
     * 其他数据
     */
    private Object ot;
}
